<template>
    <!-- 秒杀 -->
	<div class="instantDeath">
		<div class="topBox">
			<div class="left">
				<div class="title">
					限时秒杀
				</div>
				<div class="verticalLine">
					|
				</div>
                <div style="font-weight: 500;font-size: 12px;color: #909090;">距离结束</div>
				<div class="subheading">
					<div class="tesuo">
						<div class="item"> 1 </div>
						<div class="item"> 2 </div>
					</div> :
					<div class="tesuo">
						<div class="item"> 0 </div>
						<div class="item"> 1 </div>
					</div> :
					<div class="tesuo">
						<div class="item"> 5 </div>
						<div class="item"> 8 </div>
					</div>
				</div>
			</div>
			<div class="right">
				更多 >
			</div>
		</div>
		<div class="list">
            <div>
                <div class="time">
                    10:00
                </div>
                <div class="ks">
                    即将开始
                </div>
            </div>
             <div>
                <div class="time">
                    11:00
                </div>
                <div class="ks">
                    即将开始
                </div>
            </div>
             <div>
                <div class="time">
                    12:00
                </div>
                <div class="ks">
                    即将开始
                </div>
            </div>
             <div>
                <div class="time">
                    13:00
                </div>
                <div class="ks">
                    即将开始
                </div>
            </div>
        </div>
		<div class="goodsList">
			<div class="goodsItem" v-for="item in 2" :key="item">
				<div class="goodsImage">
					<img src="https://img.quanminyanxuan.com/excel/f6860885547648d9996474bbf21fdca9.jpg" mode=""></img>
				</div>
				<div class="goodsDetail">
					<div class="goodsName textsl2">
						【进口】红牛维生素风味饮料
						250ml*24罐红牛维生素风味饮料
						250ml*24罐
					</div>
					<div class="progressBarBox">
						<div class="progressBar"></div>
						<div class="title">
							已抢65%
						</div>
					</div>
					<div class="bottomPrice">
						<div class="left">
							<div class="price">
								￥<span>309</span>
							</div>
							<div class="money">
								￥485
							</div>
						</div>
						<div class="btn">
							立即抢购
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
export default {
    name: 'miaosha',
        props: {

		},
		data() {
			return {
				
			};
		},
		watch: {
		    current: {
		        handler (newName, oldName) {
						// uni.setStorageSync('prevIndex',this.currents)
		        },
		        immediate: true
		    }
		},
    mounted() {

    }

}
</script>

<style scoped lang="scss">
        .time{
                font-weight: bold;
                font-size: 15px;
                color: #FFFFFF;
                text-align: center;
            }
            .ks{
                font-weight: 500;
                font-size: 10px;
                color: #FFFFFF;
                text-align: center;
            }
	.instantDeath{
         width: 374px;
        margin: 0 auto;
		margin-top:15px;
        .list{
            height: 53px;
            background: #FF0034;
            box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.08);
            border-radius: 13px 13px 13px 13px;
            margin: 10px auto;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }
		.topBox{
			display: flex;
			justify-content: space-between;
			align-items: center;
			.left{
				display: flex;
				align-items: center;
				.title{
					font-weight: bold;
					font-size: 12px;
					color: #000000;
					line-height: 0px;
					text-align: left;
					font-style: normal;
					text-transform: none;
					margin: 0 5px;
				}
				.verticalLine{
					color: #909090;
					margin-right: 5px;
				}
				.subheading{
					font-weight: 500;
					font-size: 12px;
					color: #909090;
					text-align: left;
					font-style: normal;
					text-transform: none;
					display: flex;
				}
			}
			.right{
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 12px;
				color: #909090;
				line-height: 0px;
				text-align: left;
				font-style: normal;
				text-transform: none;
			}
		}
		.tabBox{
			background-color: #00C356;
			box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.08);
			border-radius: 13px 13px 13px 13px;
			margin-top: 10px;
			.tabList{
				padding: 10upx;
				.tabItem{
					color: #E6EAED;
					margin-right: 5px;
					.title{
						width: 100%;
						// padding-left: 5px;
						text-align: center;
						font-weight: bold;
						font-size: 15px;
						color: #FFFFFF;
						font-style: normal;
						text-transform: none;
					}
				}
			}
		}
		.goodsList{
			margin-top: 10px;
			.goodsItem{
				margin-bottom: 10px;
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 10px;
				background: #FFFFFF;
				box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.08);
				border-radius: 13px 13px 13px 13px;
				.goodsImage{
					width: 110px;
					height: 110px;
					img{
						width: 110px;
						height: 110px;
					}
				}
				.goodsDetail{
					width: calc(100% - 120px);
					height: 110px;
					display: flex;
					justify-content: space-between;
					flex-direction: column;
					.goodsName{
						font-weight: bold;
						font-size: 13px;
						color: #000000;
						line-height: 20px;
						text-align: left;
						font-style: normal;
						text-transform: none;
					}
					.progressBarBox{
						width:80%;
						height: 14px;
						background: #EFEFEF;
						border-radius: 7px 7px 7px 7px;
						position: relative;
						.progressBar{
							width: 82px;
							height: 14px;
							background: #FDC4BA;
							border-radius: 7px 7px 7px 7px;
						}
						.title{
							top: -1px;
							left:5px;
							position: absolute;
							font-weight: 500;
							font-size: 10px;
							color: #D51507;
							text-align: left;
							font-style: normal;
							text-transform: none;
                            line-height: 14px;
						}
					}
					.bottomPrice{
						display: flex;
						justify-content: space-between;
						.left{
							display: flex;
							align-items: flex-end;
							.price{
								font-weight: bold;
								font-size: 10px;
								color: #FF0034;
								text-align: left;
								font-style: normal;
								text-transform: none;
								text{
									font-size: 16px;
								}
							}
							.money{
								margin-left: 5px;
								font-weight: 500;
								font-size: 10px;
								color: #909090;
								text-align: left;
								font-style: normal;
								text-decoration-line: line-through;
								text-transform: none;
							}
						}
						.btn{
							width: 71px;
							height: 26px;
							background: #FF0034;
							border-radius: 13px 13px 13px 13px;
							font-weight: bold;
							font-size: 12px;
							color: #FFFFFF;
							line-height: 26px;
							text-align: center;
							font-style: normal;
							text-transform: none;
						}
					}
				}
			}
		}
	}
	.tesuo{
		display: flex;
		padding-left: 10px;
		margin-right: 5px;
		.item{
			width: 18px;
			height: 18px;
			line-height: 18px;
			color: #fff;
			background-color: #FF0034;
			border-radius: 50%;
			text-align: center;
			margin-left: -5px;
		}
		.items{
			width: 18px;
			height: 18px;
			line-height: 18px;
			color: #FF620C;
			background-color: #FFFFFF;
			border-radius: 50%;
			text-align: center;
			margin-left: -5px;
		}
	}
</style>
